 window.onload = () => {
    /* let top_share = '';
    let top_share_position = 0;
    top_share = document.getElementsByClassName('more_box_content');
    top_share_position = parseInt(top_share[0].style.top);
    let top_sharebox = document.getElementsByClassName('top_sharebox');
   top_sharebox[0].onmouseover = () => {
        top_sharebox[0].getElementsByClassName('more_box')[0].style.display = 'block';
        top_share[0].style.top = '-30px';

        setTimeout(() => {
            top_share[0].style.transition = "top 0.5s";
            top_share[0].style.top = top_share_position + 'px';
            setTimeout(() => {
                top_share[0].style.transition = "top 0s";
            }, 20);
        }, 20);
    }  */



    window.onscroll =
        function() {
            var t = document.documentElement.scrollTop || document.body.scrollTop;
            if(t <=2){

                document.getElementsByClassName("top_Navg")[0].style.height = '100px';
                document.getElementsByClassName("logo")[0].style.height = '93px';
                document.getElementsByClassName("logo")[0].style.width = '393px';
                document.getElementsByClassName("new_ul22")[0].style.top = '100px';
                document.getElementsByClassName("top_wx")[0].style.top = '100px';
                document.getElementsByClassName("more_box")[0].style.top = '38px';
                let chaA = document.getElementsByClassName("news_ul")[0].getElementsByClassName("cha");
                for(let i=0;i<chaA.length;i++){
                    chaA[i].style.paddingTop = '32px';
                }
            }else if (t > 2) {
                document.getElementsByClassName("top_Navg")[0].style.height = '70px';
                document.getElementsByClassName("logo")[0].style.height = '60px';
                document.getElementsByClassName("logo")[0].style.width = '253px';
                document.getElementsByClassName("new_ul22")[0].style.top = '70px';
                document.getElementsByClassName("top_wx")[0].style.top = '70px';
                document.getElementsByClassName("more_box")[0].style.top = '11px';
                let chaA = document.getElementsByClassName("news_ul")[0].getElementsByClassName("cha");
                for(let i=0;i<chaA.length;i++){
                    chaA[i].style.paddingTop = '20px';
                }
            }
        };
}